﻿using System;

namespace POS.USBScanner
{
    public class BarcodeScannedEventArgs : EventArgs
    {
        public BarcodeScannedEventArgs(string barcode, BarcodeScannerDeviceInfo deviceInfo)
        {
            if (barcode == null)
            {
                throw new ArgumentNullException("barcode");
            }

            if (deviceInfo == null)
            {
                throw new ArgumentNullException("deviceInfo");
            }

            this.Barcode = barcode;
            this.DeviceInfo = deviceInfo;
        }

        public string Barcode
        {
            get;
            private set;
        }

        public BarcodeScannerDeviceInfo DeviceInfo
        {
            get;
            private set;
        }
    }
}
